package com.hawthorn.admin.repository;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hawthorn.admin.model.po.SysDeptPO;
import com.hawthorn.admin.repository.provider.SysDeptSqlProvider;
import com.hawthorn.platform.repository.DBMapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>todo 部门维护mapper</p>
 * @author: fengliye@expservice.com.cn
 * @created: 2022/6/22 16:53
 * @version v1.0.1
 */
@Repository
public interface SysDeptMapper extends DBMapper<SysDeptPO>
{
  @SelectProvider(SysDeptSqlProvider.class)
  IPage<Map<String, Object>> listDepts(Page<Map<String, Object>> page, String conditions);

  @SelectProvider(SysDeptSqlProvider.class)
  Integer findByDcodeAndDname(String dcode,String dname);

  @SelectProvider(SysDeptSqlProvider.class)
  List<Map<String, Object>> exportDepts(String fields, String conditions);
}
